package com.ruoyi.flowable.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.flowable.domain.WfModelTaskCopy;
import com.ruoyi.flowable.domain.bo.TaskCopyUserBo;
import org.flowable.bpmn.model.BpmnModel;

import java.util.List;

/**
 * 流程实例节点抄送对象Service接口
 *
 * @author siashan
 * @date 2024-04-05
 */
public interface IWfModelTaskCopyService extends IService<WfModelTaskCopy> {
    /**
     * 保存节点抄送对象
     *
     * @param modelId      模型ID
     * @param copyUserList 抄送列表
     */
    void create(String modelId, BpmnModel bpmnModel, List<TaskCopyUserBo> copyUserList);


    /**
     *
     * 根据模型ID删除抄送配置
     *
     * @param modelId 模型ID
     */
    void removeByModelId(String modelId);

    List<WfModelTaskCopy> selectByModelId(String modelId);
}
